package org.example.myleet.p686;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(-1 == solution.repeatedStringMatch("bana", "banana"));
        Assert.isTrue(2 == solution.repeatedStringMatch("aaaaaaaaaaaaaaaaaaaaaab", "ba"));
        Assert.isTrue(4 == solution.repeatedStringMatch("abc", "cabcabca"));
        Assert.isTrue(1 == solution.repeatedStringMatch("abab", "aba"));
        Assert.isTrue(3 == solution.repeatedStringMatch("abcd", "cdabcdab"));
        Assert.isTrue(2 == solution.repeatedStringMatch("a", "aa"));
        Assert.isTrue(1 == solution.repeatedStringMatch("a", "a"));
        Assert.isTrue(-1 == solution.repeatedStringMatch("abc", "wxyz"));
        Assert.isTrue(2 == solution.repeatedStringMatch("aaba", "aaab"));
        Assert.isTrue(2 == solution.repeatedStringMatch("aaba", "baaa"));
        Assert.isTrue(-1 == solution.repeatedStringMatch("aaba", "baaaa"));
        Assert.isTrue(1 == solution.repeatedStringMatch("aaac", "aac"));
        Assert.isTrue(2 == solution.repeatedStringMatch("aabaa", "aaaab"));
        Assert.isTrue(2 == solution.repeatedStringMatch("aabaa", "aaab"));
    }
}
